MYLIB.constant = {
	//app constant
	app_id : 'app',
	app_class : 'container_CP',
	//dashboard constant
	dashboard_id : 'dashboard',
	dashboard_class : 'dashboard',
	top_id : 'top_cp',
	top_class :'top_cp',
	//left constant
	left_id : 'optional_CP',
	left_class : 'left',
	//left constant
	right_id : 'main_CP',
	right_class : 'right',
	// module choose product
	choose_product_id : 'choose_product_id',
	choose_product_class : 'choose_product_class',
	//module main canvas
	main_canvas_id : 'main_canvas_id',
	main_canvas_class : 'main_canvas_class',
	//module text control 
	text_module_custom_font_size_id : 'text_module_custom_font_size',
	text_module_custom_font_size_output_id : 'text_module_custom_font_size',
	//module control 
	control_id : 'control_id',
	control_class : 'control_class'
}

MYLIB.eventNames = {
	chooseProductItem : 'CHOOSE_PRODUCT_ITEM',
	saveCanvas : 'SAVE_CANVAS',
	//TEXT MODULE
	event_submit_text : 'SUBMIT_FORM_TEXT',
	event_fontSize : 'CHANGE_FONTSIZE',
	//UPLOAD MODULE
	event_upload_from_computer : 'UPLOAD_FROM_COMPUTER',
	event_upload_from_url : 'UPLOAD_FROM_URL',
	event_upload_from_asset : 'UPLOAD_FROM_ASSET',
	event_display_img : 'DISPLAY_IMG_TOP',
	//Change color 
	event_change_color : 'CHANGE_COLOR',
	//CONTROL
	event_delete_item : 'EVENT_ITEM',
	event_duplicate_item : 'EVENT_COPY',
	// facebook
	event_open_photos: 'EVENT_OPEN_PHOTOS',

	event_open_asset_photos : 'EVENT_OPEN_PHOTOS_ASSET',

	event_checkout : 'EVENT_CHECKOUT'
}

MYLIB.facebook = {
	appid : '757643010983337'
}

MYLIB.HOST = 'http://localhost/laravel/public/api/v1/';
MYLIB.IMAGEHOST = 'http://localhost/laravel/public';
MYLIB.SERVICENAME = {
	getAllProducts : 'getAllProduct',
	getAllProductAllHome : 'getAllProductAllHome',
	getAssetCates : 'getCateAssetMedia',
	getAssetMediaByCate : 'getAssetMediaByCate',
	createOrder : 'createOrder'
}
//namespace
MYLIB.namespace('CP');

MYLIB.namespace('CP_INIT');

CP_INIT.text = {
	fontSize : '20',
	color : '#000',
	"fontFamilyDefault" : "arial, helvetica",
	"fontWeightDefault" : 400,
	listFont : [
		{
			font : 'Oswald',
			label : 'Oswald',
			fontWeight : [400,300]
		},
		{
			font : 'Open Sans Condensed',
			label : 'Open Sans Condensed',
			fontWeight : [300]
		}
	]
};